﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;

namespace yiracli
{
    static class HttpWebResponseExtension
    {
        public static string leer(this HttpWebResponse response)
        {
            string sReturn = string.Empty;
            using (StreamReader sr =
                new StreamReader(response.GetResponseStream()))
            {
                sReturn = sr.ReadToEnd();
                sr.Close();
            }
            return sReturn;
        }
    }
}
